<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/admin/commons/taglib.jsp"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>后台管理</title>
	<script type="text/javascript">
        $(function(){
            $("#student").addClass("active");
            $("#student").find("ul li").eq(0).addClass("active");
        })
	</script>
	<style>
		.inputContent{
			border:1px solid #F5F5F5;
			padding: 5px 20px 5px 0;
			width: 60%;
		}
	</style>
	<script>
        function saveStudent(obj,id){
            var name = $('#student_name').val();
            var phone = $('#student_phone').val();
            var address = $('#student_address').val();
            if(phone!=""&&name!=""&&address!=""){
                $.ajax({
                    'url':'team!save.action',
                    'type':'post',
                    'data':{'student.name':name,'student.phone':phone,'student.address':address,'student.id':id},
                    'dataType':'json',
                    'success':function(data){
                        alertDiv("保存成功！");
                    },
                    'error':function(){
                        alertDiv("请求失败！");
                    }
                });
            }else{
                alert("请填写相关参数");
            }
        }
	</script>
</head>

<body>
	<div class="admin">
		<div class="panel">
			  <div class="panel-head">
				  <div class="line-big">
					  <div class="x4"><strong>会员详情</strong></div>
					  <!-- 以下为分销项目所有 -->
					  <%--<div class="x8">
						  <a style="display:none;" class="button border-blue button-little" href="zhuce!findbyopenid.com.kecheng.action?student.openid=${student.openid}" />注册信息</a>&nbsp;&nbsp;&nbsp;&nbsp;
						  <a style="display:none;" class="button border-blue button-little" href="order!findbysid1.com.kecheng.action?student.id=${student.id}" />分销订单</a>&nbsp;&nbsp;&nbsp;&nbsp;
						  <a class="button border-green button-little" href="student!findbyrefereeid.com.kecheng.action?student.id=${student.id}" />一级代理</a>&nbsp;&nbsp;&nbsp;&nbsp;
						  <a class="button border-green button-little" href="student!findbytree.com.kecheng.action?student.id=${student.id}" />二级代理</a>&nbsp;&nbsp;&nbsp;&nbsp;
						  <a class="button border-green button-little" href="student!findbyfour.com.kecheng.action?student.id=${student.id}" />三级代理</a>&nbsp;&nbsp;&nbsp;&nbsp;
						  <a class="button border-yellow button-little" href="yongjin!findbysid.com.kecheng.action?student.id=${student.id}" >收益统计</a>&nbsp;&nbsp;&nbsp;&nbsp;
						  <a class="button border-red button-little" href="tixian!findbysid.com.kecheng.action?student.id=${student.id}" >提现记录</a>
					  </div>--%>
				</div>
			  </div>
		  <div class="panel-body">
			  <div class="media" style="text-align:center;">
				  <img src="${student.img}" width="80px"height="80px" class="radius-circle" alt="...">
				  <div class="media-body">
					<strong>头像</strong>
				  </div>
			  </div>

			  <table class="table ">
					 <tr><td><strong>关注时间：</strong></td><td style="padding: 5px 20px 5px 5px;">${student.time}</td></tr>
					 <tr><td style="width:10%;"><strong>姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：</strong></td><td>
						 <input id="student_name" class="inputContent" name="name" value="${student.name}"/></td></tr>
					 <tr><td><strong>微信昵称：</strong></td><td >${student.nickname}</td></tr>
					 <tr><td><strong>电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话：</strong></td><td>
						 <input id="student_phone" class="inputContent" name="name" value="${student.phone}"/></td></tr>
					 <tr><td><strong>地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;址：</strong></td><td>
						 <input id="student_address"class="inputContent" name="name" value="${student.address}"/></td></tr>

					  <tr><td><strong></strong></td><td>
						  <input onclick="saveStudent(this,'${student.id}')" type="button" class="button button-small border-blue" value="修&nbsp;改" /></td></tr>
			  </table>

		  </div>
		</div>
	</div>


</body>
</html>